from wormbane.model.food import Food

import random

class Mushroom(Food):
    is_mushroom = True
    kind = 'mushroom'
    color = 'random'
    desc_attrs = ('beatitude_prefix', 'color', 'kind')

    def __init__(self, **kwargs):
        Food.__init__(self, **kwargs)
        if self.color == 'random':
            self.color = random.choice(('brown', 'orange', 'red', 'white',
                                        'yellow'))
